:root {
    --btn-hover: #66b1ff;
    --btn-active: #409eff;
    --text-primary: #409EFF;
    --text-success: #67C23A;
    --text-error: #F56C6C;
    --bg-success: #f0f9eb;
    --bg-error: #fef0f0;
    --bg-primary: #007bff;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: #333;
}

i {
    font-style: normal;
}

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.container {
    width: 1400px;
    margin: 0 auto;
}

.text-ellipsis-1 {
    white-space: none;
    overflow: hidden;
    text-overflow: ellipsis;
}

.text-ellipsis-4 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
}

/* 消息弹窗 */
.alert {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    top: 80px;
    background-color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    color: #fff;
    max-width: 300px;
    width: 100%;
    font-size: 14px;
    height: 40px;
    opacity: 0;
    transition: .3s ease;
}

.alert[data-hide=false] {
    opacity: 1;
}

.alert.success {
    background-color: var(--bg-success);
    color: var(--text-success);
}

.alert.error {
    background-color: var(--bg-error);
    color: var(--text-error);
}

/* 顶部 */
.header {
    position: absolute;
    top: 0;
    width: 100%;
    background-color: var(--bg-primary);
    box-shadow: 0 -1px 6px 0 #505050;
}

.header .container .header-box {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header .container .header-box > div {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header .container .header-box .left .title a {
    color: #fff;
}

.header .container .header-box .left .search {
    display: flex;
    height: 30px;
    gap: 15px;
}

:is(.header .container .header-box .left .search) input, select {
    border-radius: 3px;
    border: 0;
    outline: 0;
    padding: 0 10px;
    font-size: 14px;
}

.header .container .header-box .left .search button {
    padding: 0 20px;
    color: #fff;
    background-color: #17a2b8;
    border: 0;
    outline: 0;
    border-radius: 3px;
    cursor: pointer;
}

.header .container .header-box .left .search button:hover {
    background-color: #18b3cd;
}

.header .container .header-box .left .search button:active {
    background-color: #17a2b8;
}

.header .container .header-box .right {
    color: #fff;
    font-size: 16px;
}

.header .container .header-box .right .user {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #fff;
}

.header .container .header-box .right .user .pic {
    width: 30px;
    height: 30px;
    border-radius: 100vh;
    background: url("../assets/defaultAvatar.png") no-repeat center;
    background-size: cover;
}

.header .container .header-box .right .logout {
    cursor: pointer;
}

/* 底部 */

.footer {
    width: 100%;
    background-color: var(--bg-primary);
    height: 130px;
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.footer h2 {
    margin-top: 30px;
    margin-bottom: 5px;
}

.footer p {
    color: #fff;
    font-size: 14px;
}